package ioc;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/6/22 15:36
 * 底盘类
 */
public class Bottom {

    private Tire tire;

    public Bottom(Tire tire) {
        this.tire = tire;
    }

    public void init() {
        System.out.println("调用了 bottom 的 init");
        tire.init();
    }
}
